package cn.foolishbird.business.abstraction.iassert.condition;

import cn.foolishbird.business.abstraction.iassert.condition.Condition;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-12-13
 */
public class NotNullCondition<T extends Object> implements Condition {

    private T t;

    public NotNullCondition(T t) {
        this.t = t;
    }

    @Override
    public boolean condition() {
        if (t == null) {
            return true;
        }
        return false;
    }

}
